Skip to main content

Some Common Event Handlers

An event handler is a method or a function that can handle user actions. An event handler is associated with a particular action so that you can write code that gets triggered when an action happens. This doc will cover the commonly used event handlers of EmpowerID objects.

Workflow Event Handlers

Event HandlerDescription
CompletedThis event handler invokes after the workflow has completed the execution.
ExceptionThis event handler is triggered when a runtime error occurs.
IdleWhen a workflow enters an idle or suspended state, Workflow invokes this event handler.
ResumeThis event handler invokes when a workflow executes again after staying in an idle state.
StartedThis event handler invokes when the workflow starts the execution.

Activity Event Handlers

Event HandlerDescription
After ExecuteThis event handler fires after the code execution of an activity completes. It can be any activity, whether a Form Activity or a Lookup Activity on your workflow designer pane. If you need to perform a task after the workflow engine has executed your activity, you can write the code in this event handler of your activity.
Workflow Page
Before ExecuteThis event handler invokes before the activity code executes. If you want to perform any task or action before entering into your activity placed on a workflow, then use this event handler.
Workflow Page

Page Event Handlers

Event HandlerDescription
ExecuteUITaskCodeThis event invokes before the form is displayed to the user.
WizardBackExecuteCodeWhen a user clicks on the back button of the wizard, the page will raise this event.